package org.ala.tiktools.generator.mybatis.dbinfo;

import org.ala.tiktools.generator.mybatis.creator.entity.FieldInfo;

import java.util.List;

/**
 * 表信息
 *
 * @author ala
 * @date 2024-12-31 10:57
 */
public class TableInfo {

    protected String name;
    protected String desc;
    protected List<ColumnInfo> columns;
    protected ColumnInfo onlyAutoIncrementPrimaryKey;
    protected String createSql;
    protected List<String> createIndexSql;
    protected boolean shardTable;
    protected String allTablesSql;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<ColumnInfo> getColumns() {
        return columns;
    }

    public void setColumns(List<ColumnInfo> columns) {
        this.columns = columns;
    }

    public ColumnInfo getOnlyAutoIncrementPrimaryKey() {
        return onlyAutoIncrementPrimaryKey;
    }

    public void setOnlyAutoIncrementPrimaryKey(ColumnInfo onlyAutoIncrementPrimaryKey) {
        this.onlyAutoIncrementPrimaryKey = onlyAutoIncrementPrimaryKey;
    }

    public String getCreateSql() {
        return createSql;
    }

    public void setCreateSql(String createSql) {
        this.createSql = createSql;
    }

    public boolean isShardTable() {
        return shardTable;
    }

    public void setShardTable(boolean shardTable) {
        this.shardTable = shardTable;
    }

    public String getAllTablesSql() {
        return allTablesSql;
    }

    public void setAllTablesSql(String allTablesSql) {
        this.allTablesSql = allTablesSql;
    }

    public List<String> getCreateIndexSql() {
        return createIndexSql;
    }

    public void setCreateIndexSql(List<String> createIndexSql) {
        this.createIndexSql = createIndexSql;
    }
}
